﻿namespace PageTypeBuilderUI
{
    using EPiServer.PlugIn;
    using System.Web;
    using System.Web.Hosting;
    using PageTypeBuilder.UI;

    internal class RegisterResources : PlugInAttribute
    {
        public static void Start()
        {
            RegisterVppResources();
        }
        private static void RegisterVppResources()
        {
            if (HttpContext.Current == null)
                return;

            HostingEnvironment.RegisterVirtualPathProvider(new ResourcePathProvider("/util/PTBPropertyMatch.aspx", "PageTypeBuilderUI.Plugins.Admin.PropertyMatch.aspx", false));
        }
    }
}